//
//  LoginView.h
//  LoverGo
//
//  Created by YeXiao on 14-1-18.
//  Copyright (c) 2014年 yexiao. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum {
    LoginTypeBack = 0,
    LoginTypeSub,
    LoginTypeRegister,
    TypeFindPwd
}LoginType;

@class LoginView;

@protocol LoginViewDelegate <NSObject>

-(void)LoginView:(LoginView*)view withType:(LoginType)type;

@end

@interface LoginView : UIControl<UITextFieldDelegate>
{
    UITextField* _nameTF;
    UITextField* _passwordTF;
    id<LoginViewDelegate> _delegate;
}
@property UITextField* nameTF;
@property UITextField* passwordTF;
@property id<LoginViewDelegate> delegate;

@end
